package com.woniuxy.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * @ClassName PermissionRole
 * @Description 权限角色关联模型
 * @Author 李磊
 * @Version 1.0
 **/
@TableName("t_permission_role")
public class PermissionRole implements Serializable {

    private static final long serialVersionUID = 1L;
    /*权限角色关联ID*/
    @TableId(value = "connection_id", type = IdType.AUTO)
    private Integer connectionId;
    /*权限ID*/
    private Integer permissionId;
    /*角色ID*/
    private Integer roleId;


    public Integer getConnectionId() {
        return connectionId;
    }

    public void setConnectionId(Integer connectionId) {
        this.connectionId = connectionId;
    }

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "PermissionRole{" +
        "connectionId=" + connectionId +
        ", permissionId=" + permissionId +
        ", roleId=" + roleId +
        "}";
    }
}
